<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>智慧公社-消息中心</title>

    <link href="__PUBLIC__/css/index.css" rel="stylesheet" />
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/iosOverlay.css"  rel="stylesheet" type="text/css">
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/jquery.snippet.min.js"></script>
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/js/jquery.pin.min.js"></script>
     <script src="__PUBLIC__/js/index.js"></script>
    <script src="__PUBLIC__/js/iosOverlay.js"></script>
    <script src="__PUBLIC__/js/spin.min.js"></script>
    <!--<style>
     *{border: 1px solid rgb(250,0,255);}
    </style>-->
</head>
<body>

 
    <!-- 头部导航开始 -->
 <include file="Index/title" />

    <!-- 主体信息开始 -->
    <div id="contents" class="container" style="min-height:500px">

        <h1>
            <ul id="myTab2" class="nav mess-pills nav-justified">
                <li class="active"><a href="#home1" data-toggle="tab">观点</a></li>
                <li class=""><a href="#profile1" data-toggle="tab">请求</a></li>
                <li class=""><a href="#dropdown11" data-toggle="tab">通知</a></li>
            </ul>
        </h1>
        <div id="myTabContent2" class="tab-content">
            <div class="tab-pane fade active in" id="home1">
                <div class="mess-date mess-top">
                    <img src="__PUBLIC__/images/mess-time.png" height="40" />
                    
                </div>
                <div class="message-border">
                <foreach name="messCont" item="mCont">
                    <if condition="$mCont['MessType'] lt 3">
                    <div class="message">
                        <div class="mess-user">
                            <a href="{:U('Index/hispage',array('hispage'=>$mvo['uMid']))}"><img src="{$mCont['uMimg']}" width="45" /></a><br />
                           <a href="{:U('Index/hispage',array('hispage'=>$mvo['uMid']))}">{$mCont['uMname']}</a>
                        </div>
                        <div class="mess-body">
                        <if condition="$mCont['MessType'] eq 1">
                            <div class="mess-title">
                                <span class="into">讨论：</span>{$mCont['MessContent']}
                            </div>
                            <div class="mess-cont">
                               <a href="{:U('Index/discuss',array('aId'=>$mCont['aMid']))}">{$mCont['aMcontent']}.....</a>
                            </div>
                            <elseif condition="$mCont['MessType'] eq 2"/>
                             <div class="mess-title">
                                 <span class="into">补充：</span>{$mCont['MessContent']}
                            </div>
                            <div class="mess-cont">
                               <a href="{:U('Index/article',array('aid'=>$mCont['aMid']))}">{$mCont['aMcontent']}.....</a>
                            </div>
                        </if>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    </if>
              </foreach>
                </div>
            </div>
            <div class="tab-pane fade" id="profile1">
                <div class="mess-date mess-top">
                    <img src="__PUBLIC__/images/mess-time.png" height="40" />
                   
                </div>
                <div class="message-border">
                 <foreach name="messCont" item="mCont">
                   <if condition="($mCont['MessType'] egt 3 ) and ($mCont['MessType'] elt 5)">
                    <div class="message">
                        <div class="mess-user">
                           <a href="{:U('Index/hispage',array('hispage'=>$mCont['uMid']))}"> <img src="{$mCont['uMimg']}" width="45" /></a><br />
                            <a href="{:U('Index/hispage',array('hispage'=>$mCont['uMid']))}">{$mCont['uMname']}</a>
                        </div>
                        <div class="mess-body">
                            <div class="mess-title">
                            <if condition="$mCont['MessType'] eq 3">
                                <span class="invite">申请</span>加入讨论
                            <elseif condition="$mCont['MessType'] eq 4"/>
                               <span class="invite">申请</span>补充文章
                            <elseif condition="$mCont['MessType'] eq 5"/> 
                            <span class="invite">邀请</span>参与讨论
                            </if>
                                <if condition="$mCont['Mpass'] eq 0">
                                <a><button type="button" class="btn btn-mini btn-primary allow" valueU="{$mvo['uMid']}" valueA="{$mvo['aMid']}" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}">允许</button></a>
                                                  <a> <button type="button" class="btn btn-default refusal" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}" >忽略</button></a>
                                 <elseif condition="$mCont['Mpass'] eq 1" />     
                                    <a class="btn">已同意</a>
                                 <elseif condition="$mCont['Mpass'] eq 2"/>
                                   <a class="btn">已忽略</a>
                                 </if>            
                            </div>
                            <div class="mess-cont">
                             {$mCont['aMcontent']}    
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    </if>
                   </foreach>
                </div>
            </div>
            <div class="tab-pane fade" id="dropdown11">
                <div class="mess-date mess-top">
                    <img src="__PUBLIC__/images/mess-time.png" height="40" />
                </div>
                <div class="message-border">
                 <foreach name="messCont" item="mCont">
                   <if condition="($mCont['MessType'] egt 6 ) and ($mCont['MessType'] elt 8)">
                    <div class="message">
                        <div class="mess-user">
                            <img src="{$mCont['uMimg']}" width="45" /><br />
                            {$mCont['uMname']}
                        </div>
                        <div class="mess-body">
                          <if condition="$mCont['MessType'] eq 6">
                            <div class="mess-title">
                                <span class="agree">同意</span>参与讨论<a href="{:U('Index/discuss',array('aId'=>$mCont['aMid']))}"  class="btn btn-danger" style="color:#FFF;">进入讨论</a>
                            </div>
                            <div class="mess-cont">
                                <a href="{:U('Index/discuss',array('aId'=>$mCont['aMid']))}"> {$mCont['aMcontent']}</a>
                            </div>
                           <elseif condition="$mCont['MessType'] eq 7"/>
                           <div class="mess-title">
                                <span class="agree">同意</span>补充文章<a href="{:U('Index/article',array('aid'=>$mCont['aMid']))}" class="btn btn-danger" style="color:#FFF;">立即补充</a>
                            </div>
                            <div class="mess-cont">
                                 <a href="{:U('Index/article',array('aid'=>$mCont['aMid']))}"> {$mCont['aMcontent']} </a>   
                            </div>
                           <elseif condition="$mCont['MessType'] eq 8"/>
                           <div class="mess-title">
                                <span class="agree">接受</span>邀请<a href="{:U('Index/discuss',array('aId'=>$mCont['aMid']))}" class="btn btn-danger" style="color:#FFF;">进入讨论</a>
                            </div>
                            <div class="mess-cont">
                               <a href="{:U('Index/discuss',array('aId'=>$mCont['aMid']))}">{$mCont['aMcontent']} </a>
                            </div>
                           </if>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    </if>
             </foreach>
                </div>

            </div>

        </div> 
        </div><!-- 主体信息结束 -->


        <footer>
            
        </footer>
        <script type="text/javascript">
            jQuery(function ($) {
                $(document).ready(function () {
                    //var messcont = $("#myTabContent").find(".mess-close").size();
                   // $(".mess-nord").text(messcont);
   



            });
		});
        </script>
		<include file="Index/copyright" />
</body>
</html>
